using DataDynamics.ActiveReports;
using DataDynamics.ActiveReports.Export.Xls;
using SM.core;
using SS;
using System;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Windows.Forms;
namespace TVSBH.func
{
	public class frmQuotePrice : Form
	{
		private Func objFunc = new Func();
		private DataTable objTable = new DataTable();
		private Bill objBill = new Bill();
		private IContainer components = null;
		private DataGridView dgvProduct;
		private Button btnClose;
		private GroupBox groupBox1;
		private ComboBox cbbProduct;
		private System.Windows.Forms.Label label2;
		private ComboBox cbbParentGID;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.CheckBox cbbAllProduct;
		private System.Windows.Forms.CheckBox cbbAllGroup;
		private Button btnPrint;
		private Button btnSearch;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.TextBox txtDate;
		private System.Windows.Forms.TextBox txtNote;
		private Button btnExportToExcel;
		private DataGridViewTextBoxColumn Column2;
		private DataGridViewTextBoxColumn Column1;
		private DataGridViewTextBoxColumn Column7;
		private DataGridViewTextBoxColumn Column4;
		private DataGridViewTextBoxColumn Column3;
		private DataGridViewTextBoxColumn Column9;
		public frmQuotePrice()
		{
			this.InitializeComponent();
		}
		private void frmInput_Load(object sender, EventArgs e)
		{
			Program.strConnectionString = this.objFunc.strConnectionString;
			this.objFunc.LoadComboBox("SELECT GpID, UPPER(GpName) AS GpName FROM TabGproducts ORDER BY GpName", this.cbbParentGID, "GpID", "GpName");
			this.dgvProduct.AutoGenerateColumns = false;
			this.getDetailBalancer("");
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void frmInput_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				base.Close();
			}
		}
		private void cbbParentGID_SelectedIndexChanged(object sender, EventArgs e)
		{
			this.objFunc.LoadComboBox("SELECT PID, UPPER(P_Name) AS P_Name FROM [TabProducts] WHERE [GpID] = " + this.cbbParentGID.SelectedValue.ToString() + " ORDER BY P_Name", this.cbbProduct, "PID", "P_Name");
		}
		public void getDetailBalancer(string sqlQuery)
		{
			try
			{
				DataTable dataTable = new DataTable();
				DataColumn column = new DataColumn("Pid", typeof(string));
				DataColumn column2 = new DataColumn("ProductName", typeof(string));
				DataColumn column3 = new DataColumn("Packet", typeof(string));
				DataColumn column4 = new DataColumn("National", typeof(string));
				DataColumn column5 = new DataColumn("ProductPrice1", typeof(string));
				DataColumn column6 = new DataColumn("ProductUnit", typeof(string));
				dataTable.Columns.Add(column);
				dataTable.Columns.Add(column2);
				dataTable.Columns.Add(column3);
				dataTable.Columns.Add(column4);
				dataTable.Columns.Add(column5);
				dataTable.Columns.Add(column6);
				SqlConnection sqlConnection = new SqlConnection(Program.strConnectionString);
				sqlConnection.Open();
				SqlCommand sqlCommand = sqlConnection.CreateCommand();
				if (sqlQuery == "")
				{
					sqlCommand.CommandText = "SELECT * FROM [TabDetailBill],[TabBill] WHERE [TabDetailBill].[billID] = [TabBill].[ID] AND  [TypeInput] IN ('IN1','IN2','IN3') AND [Packet] IN (SELECT [Packet] FROM [TabTotalBalancer] WHERE (productNumberIn > productNumberOut)) ORDER BY [ProductName]";
				}
				else
				{
					sqlCommand.CommandText = sqlQuery;
				}
				SqlDataReader sqlDataReader = sqlCommand.ExecuteReader();
				National national = new National();
				while (sqlDataReader.Read())
				{
					string text = national.getNational(sqlDataReader["NationalID"].ToString()).ToUpper();
					if (!this.checkProductNameInDataGridView(sqlDataReader["ProductName"].ToString(), dataTable))
					{
						dataTable.Rows.Add(new object[]
						{
							sqlDataReader["Pid"].ToString(),
							sqlDataReader["ProductName"].ToString().ToUpper(),
							sqlDataReader["Packet"].ToString(),
							text,
							string.Format(Program.lenAffterDecimal, float.Parse(sqlDataReader["ProductPrice1"].ToString())),
							" " + sqlDataReader["ProductUnit"].ToString()
						});
					}
					else
					{
						dataTable.Rows.Add(new object[]
						{
							sqlDataReader["Pid"].ToString(),
							"",
							sqlDataReader["Packet"].ToString(),
							text,
							string.Format(Program.lenAffterDecimal, float.Parse(sqlDataReader["ProductPrice1"].ToString())),
							" " + sqlDataReader["ProductUnit"].ToString()
						});
					}
				}
				sqlDataReader.Close();
				sqlConnection.Close();
				sqlConnection.Dispose();
				this.btnPrint.Enabled = true;
				this.objTable = dataTable;
				this.dgvProduct.DataSource = this.objTable;
				if (this.objTable.Rows.Count > 0)
				{
					this.btnPrint.Enabled = true;
					this.btnExportToExcel.Enabled = true;
				}
				else
				{
					this.btnPrint.Enabled = false;
					this.btnExportToExcel.Enabled = false;
				}
			}
			catch
			{
				this.btnPrint.Enabled = false;
				this.objTable = null;
				this.dgvProduct.DataSource = this.objTable;
			}
		}
		private bool checkProductNameInDataGridView(string pName, DataTable objTable)
		{
			bool result = false;
			for (int i = 0; i < objTable.Rows.Count; i++)
			{
				if (objTable.Rows[i]["ProductName"].ToString().ToUpper() == pName.ToUpper())
				{
					result = true;
				}
			}
			return result;
		}
		private void btnSearch_Click(object sender, EventArgs e)
		{
			this.getDetailBalancer("");
		}
		private void cbbAllGroup_CheckedChanged(object sender, EventArgs e)
		{
			if (this.cbbAllGroup.Checked)
			{
				this.btnSearch.PerformClick();
			}
			else
			{
				this.btnSearch.PerformClick();
			}
		}
		private void cbbAllProduct_CheckedChanged(object sender, EventArgs e)
		{
			if (this.cbbAllProduct.Checked)
			{
				string sqlQuery = "SELECT * FROM [TabDetailBill],[TabBill] WHERE [TabDetailBill].[billID] = [TabBill].[ID] AND  [TypeInput] IN ('IN1','IN2','IN3') AND [Packet] IN (SELECT [Packet] FROM [TabTotalBalancer] WHERE (productNumberIn > productNumberOut)) AND [TabDetailBill].[PID] IN (SELECT PID FROM [TabProducts] WHERE [GpID] = " + this.cbbParentGID.SelectedValue.ToString() + ") ORDER BY [ProductName]";
				this.getDetailBalancer(sqlQuery);
			}
			else
			{
				this.btnSearch.PerformClick();
			}
		}
		private void cbbProduct_SelectedIndexChanged(object sender, EventArgs e)
		{
			if (!this.cbbAllGroup.Checked && !this.cbbAllProduct.Checked)
			{
				string sqlQuery = "SELECT * FROM [TabDetailBill],[TabBill] WHERE [TabDetailBill].[billID] = [TabBill].[ID] AND [TabDetailBill].[PID] = '" + this.cbbProduct.SelectedValue.ToString() + "' AND [TypeInput] IN ('IN1','IN2','IN3')  AND [Packet] IN (SELECT [Packet] FROM [TabTotalBalancer] WHERE (productNumberIn > productNumberOut)) ORDER BY [ProductName]";
				this.getDetailBalancer(sqlQuery);
			}
		}
		private void resetDataGridView()
		{
			this.objTable = null;
			this.dgvProduct.DataSource = this.objTable;
			this.btnPrint.Enabled = false;
		}
		private void btnPrint_Click(object sender, EventArgs e)
		{
			frmRepQuotePrice.objTable = new DataTable();
			frmQuotePriceView frmQuotePriceView = new frmQuotePriceView();
			if (!this.cbbAllProduct.Checked)
			{
				frmQuotePriceView.productName = this.cbbProduct.Text;
			}
			else
			{
				frmQuotePriceView.productName = "Tất cả";
			}
			if (!this.cbbAllGroup.Checked)
			{
				frmQuotePriceView.productGroup = this.cbbParentGID.Text;
			}
			else
			{
				frmQuotePriceView.productName = "Tất cả";
				frmQuotePriceView.productGroup = "Tất cả";
			}
			frmQuotePriceView.dateTime = this.txtDate.Text;
			frmQuotePriceView.note = this.txtNote.Text;
			frmRepQuotePrice.objTable = this.objTable;
			frmQuotePriceView.ShowDialog();
		}
		private void btnExportToExcel_Click(object sender, EventArgs e)
		{
			try
			{
				frmRepQuotePrice.objTable = new DataTable();
				frmRepQuotePrice.objTable = this.objTable;
				ActiveReport3 activeReport = new frmRepQuotePrice();
				activeReport.Run();
				XlsExport xlsExport = new XlsExport();
				SaveFileDialog saveFileDialog = new SaveFileDialog();
				saveFileDialog.ShowDialog();
				string text = saveFileDialog.FileName;
				if (text != "")
				{
					if (!text.ToUpper().Contains(".XLS"))
					{
						text += ".xls";
					}
					xlsExport.Export(activeReport.Document, text);
					MessageBox.Show("Hệ thống đã hoàn thành việc xuất dữ liệu ra file Excel", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				else
				{
					MessageBox.Show("Bạn chưa chọn đường dẫn và tên file cần xuất!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				}
			}
			catch
			{
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			DataGridViewCellStyle dataGridViewCellStyle = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle2 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle3 = new DataGridViewCellStyle();
			DataGridViewCellStyle dataGridViewCellStyle4 = new DataGridViewCellStyle();
			ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof(frmQuotePrice));
			this.dgvProduct = new DataGridView();
			this.Column2 = new DataGridViewTextBoxColumn();
			this.Column1 = new DataGridViewTextBoxColumn();
			this.Column7 = new DataGridViewTextBoxColumn();
			this.Column4 = new DataGridViewTextBoxColumn();
			this.Column3 = new DataGridViewTextBoxColumn();
			this.Column9 = new DataGridViewTextBoxColumn();
			this.btnClose = new Button();
			this.groupBox1 = new GroupBox();
			this.cbbAllProduct = new System.Windows.Forms.CheckBox();
			this.cbbAllGroup = new System.Windows.Forms.CheckBox();
			this.cbbProduct = new ComboBox();
			this.label2 = new System.Windows.Forms.Label();
			this.cbbParentGID = new ComboBox();
			this.label1 = new System.Windows.Forms.Label();
			this.btnPrint = new Button();
			this.btnSearch = new Button();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.txtDate = new System.Windows.Forms.TextBox();
			this.txtNote = new System.Windows.Forms.TextBox();
			this.btnExportToExcel = new Button();
			((ISupportInitialize)this.dgvProduct).BeginInit();
			this.groupBox1.SuspendLayout();
			base.SuspendLayout();
			this.dgvProduct.AllowUserToAddRows = false;
			this.dgvProduct.AllowUserToDeleteRows = false;
			this.dgvProduct.AllowUserToOrderColumns = true;
			this.dgvProduct.AllowUserToResizeColumns = false;
			this.dgvProduct.AllowUserToResizeRows = false;
			dataGridViewCellStyle.BackColor = Color.FromArgb(192, 255, 255);
			dataGridViewCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvProduct.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle;
			this.dgvProduct.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.dgvProduct.BackgroundColor = Color.White;
			this.dgvProduct.BorderStyle = BorderStyle.Fixed3D;
			this.dgvProduct.ColumnHeadersHeight = 24;
			this.dgvProduct.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
			this.dgvProduct.Columns.AddRange(new DataGridViewColumn[]
			{
				this.Column2,
				this.Column1,
				this.Column7,
				this.Column4,
				this.Column3,
				this.Column9
			});
			this.dgvProduct.Cursor = Cursors.Hand;
			this.dgvProduct.EnableHeadersVisualStyles = false;
			this.dgvProduct.Location = new System.Drawing.Point(7, 97);
			this.dgvProduct.MultiSelect = false;
			this.dgvProduct.Name = "dgvProduct";
			this.dgvProduct.ReadOnly = true;
			this.dgvProduct.RowHeadersVisible = false;
			this.dgvProduct.RowHeadersWidthSizeMode = DataGridViewRowHeadersWidthSizeMode.DisableResizing;
			this.dgvProduct.RowTemplate.DefaultCellStyle.Font = new Font("Arial", 9.75f, FontStyle.Regular, GraphicsUnit.Point, 0);
			this.dgvProduct.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
			this.dgvProduct.Size = new Size(886, 463);
			this.dgvProduct.TabIndex = 1;
			this.Column2.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
			this.Column2.DataPropertyName = "productName";
			dataGridViewCellStyle2.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
			this.Column2.DefaultCellStyle = dataGridViewCellStyle2;
			this.Column2.HeaderText = "Sản phẩm";
			this.Column2.MinimumWidth = 100;
			this.Column2.Name = "Column2";
			this.Column2.ReadOnly = true;
			this.Column2.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column1.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column1.DataPropertyName = "Packet";
			this.Column1.HeaderText = "Số lô";
			this.Column1.MinimumWidth = 120;
			this.Column1.Name = "Column1";
			this.Column1.ReadOnly = true;
			this.Column1.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column1.Width = 120;
			this.Column7.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column7.DataPropertyName = "National";
			dataGridViewCellStyle3.Alignment = DataGridViewContentAlignment.MiddleLeft;
			dataGridViewCellStyle3.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			dataGridViewCellStyle3.ForeColor = Color.Red;
			dataGridViewCellStyle3.Format = "N0";
			dataGridViewCellStyle3.NullValue = null;
			this.Column7.DefaultCellStyle = dataGridViewCellStyle3;
			this.Column7.HeaderText = "Xuất xứ";
			this.Column7.MinimumWidth = 150;
			this.Column7.Name = "Column7";
			this.Column7.ReadOnly = true;
			this.Column7.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column7.Width = 150;
			this.Column4.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column4.DataPropertyName = "ProductPrice1";
			dataGridViewCellStyle4.Alignment = DataGridViewContentAlignment.MiddleRight;
			dataGridViewCellStyle4.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 0);
			dataGridViewCellStyle4.ForeColor = Color.Blue;
			this.Column4.DefaultCellStyle = dataGridViewCellStyle4;
			this.Column4.HeaderText = "Giá bán";
			this.Column4.MinimumWidth = 100;
			this.Column4.Name = "Column4";
			this.Column4.ReadOnly = true;
			this.Column4.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column3.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column3.DataPropertyName = "productUnit";
			this.Column3.HeaderText = "Đơn vị tính";
			this.Column3.MinimumWidth = 110;
			this.Column3.Name = "Column3";
			this.Column3.ReadOnly = true;
			this.Column3.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column3.Width = 110;
			this.Column9.AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
			this.Column9.DataPropertyName = "Pid";
			this.Column9.HeaderText = "Mã sản phẩm";
			this.Column9.Name = "Column9";
			this.Column9.ReadOnly = true;
			this.Column9.SortMode = DataGridViewColumnSortMode.NotSortable;
			this.Column9.Visible = false;
			this.btnClose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnClose.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnClose.FlatStyle = FlatStyle.Flat;
			this.btnClose.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnClose.Location = new System.Drawing.Point(794, 568);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new Size(100, 26);
			this.btnClose.TabIndex = 38;
			this.btnClose.Text = "Thoát  [ ESC ]";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new EventHandler(this.btnClose_Click);
			this.groupBox1.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.groupBox1.Controls.Add(this.cbbAllProduct);
			this.groupBox1.Controls.Add(this.cbbAllGroup);
			this.groupBox1.Controls.Add(this.cbbProduct);
			this.groupBox1.Controls.Add(this.label2);
			this.groupBox1.Controls.Add(this.cbbParentGID);
			this.groupBox1.Controls.Add(this.label1);
			this.groupBox1.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.groupBox1.Location = new System.Drawing.Point(7, 8);
			this.groupBox1.Name = "groupBox1";
			this.groupBox1.Size = new Size(886, 83);
			this.groupBox1.TabIndex = 39;
			this.groupBox1.TabStop = false;
			this.groupBox1.Text = "Điều kiện tìm kiếm";
			this.cbbAllProduct.AutoSize = true;
			this.cbbAllProduct.Font = new Font("Arial", 9f);
			this.cbbAllProduct.Location = new System.Drawing.Point(559, 58);
			this.cbbAllProduct.Name = "cbbAllProduct";
			this.cbbAllProduct.Size = new Size(83, 19);
			this.cbbAllProduct.TabIndex = 44;
			this.cbbAllProduct.Text = "Xem tất cả";
			this.cbbAllProduct.UseVisualStyleBackColor = true;
			this.cbbAllProduct.CheckedChanged += new EventHandler(this.cbbAllProduct_CheckedChanged);
			this.cbbAllGroup.AutoSize = true;
			this.cbbAllGroup.Checked = true;
			this.cbbAllGroup.CheckState = CheckState.Checked;
			this.cbbAllGroup.Font = new Font("Arial", 9f);
			this.cbbAllGroup.Location = new System.Drawing.Point(183, 58);
			this.cbbAllGroup.Name = "cbbAllGroup";
			this.cbbAllGroup.Size = new Size(83, 19);
			this.cbbAllGroup.TabIndex = 40;
			this.cbbAllGroup.Text = "Xem tất cả";
			this.cbbAllGroup.UseVisualStyleBackColor = true;
			this.cbbAllGroup.CheckedChanged += new EventHandler(this.cbbAllGroup_CheckedChanged);
			this.cbbProduct.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.cbbProduct.BackColor = Color.White;
			this.cbbProduct.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbProduct.FlatStyle = FlatStyle.Flat;
			this.cbbProduct.FormattingEnabled = true;
			this.cbbProduct.Location = new System.Drawing.Point(559, 29);
			this.cbbProduct.Name = "cbbProduct";
			this.cbbProduct.Size = new Size(302, 23);
			this.cbbProduct.TabIndex = 42;
			this.cbbProduct.SelectedIndexChanged += new EventHandler(this.cbbProduct_SelectedIndexChanged);
			this.label2.AutoSize = true;
			this.label2.Font = new Font("Arial", 9f);
			this.label2.Location = new System.Drawing.Point(488, 33);
			this.label2.Name = "label2";
			this.label2.Size = new Size(67, 15);
			this.label2.TabIndex = 43;
			this.label2.Text = "Tên thuốc :";
			this.cbbParentGID.BackColor = Color.White;
			this.cbbParentGID.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbParentGID.FlatStyle = FlatStyle.Flat;
			this.cbbParentGID.FormattingEnabled = true;
			this.cbbParentGID.Location = new System.Drawing.Point(183, 29);
			this.cbbParentGID.Name = "cbbParentGID";
			this.cbbParentGID.Size = new Size(300, 23);
			this.cbbParentGID.TabIndex = 40;
			this.cbbParentGID.SelectedIndexChanged += new EventHandler(this.cbbParentGID_SelectedIndexChanged);
			this.label1.AutoSize = true;
			this.label1.Font = new Font("Arial", 9f);
			this.label1.Location = new System.Drawing.Point(110, 33);
			this.label1.Name = "label1";
			this.label1.Size = new Size(70, 15);
			this.label1.TabIndex = 41;
			this.label1.Text = "Loại thuốc :";
			this.btnPrint.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnPrint.Enabled = false;
			this.btnPrint.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnPrint.FlatStyle = FlatStyle.Flat;
			this.btnPrint.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnPrint.Location = new System.Drawing.Point(107, 568);
			this.btnPrint.Name = "btnPrint";
			this.btnPrint.Size = new Size(102, 26);
			this.btnPrint.TabIndex = 40;
			this.btnPrint.Text = "Xem và in [ F7 ]";
			this.btnPrint.UseVisualStyleBackColor = true;
			this.btnPrint.Click += new EventHandler(this.btnPrint_Click);
			this.btnSearch.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnSearch.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnSearch.FlatStyle = FlatStyle.Flat;
			this.btnSearch.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnSearch.Location = new System.Drawing.Point(7, 568);
			this.btnSearch.Name = "btnSearch";
			this.btnSearch.Size = new Size(99, 26);
			this.btnSearch.TabIndex = 41;
			this.btnSearch.Text = "Xem báo giá";
			this.btnSearch.UseVisualStyleBackColor = true;
			this.btnSearch.Click += new EventHandler(this.btnSearch_Click);
			this.label3.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.label3.AutoSize = true;
			this.label3.Location = new System.Drawing.Point(317, 574);
			this.label3.Name = "label3";
			this.label3.Size = new Size(90, 15);
			this.label3.TabIndex = 42;
			this.label3.Text = "Ngày niêm yết :";
			this.label4.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.label4.AutoSize = true;
			this.label4.Location = new System.Drawing.Point(494, 575);
			this.label4.Name = "label4";
			this.label4.Size = new Size(55, 15);
			this.label4.TabIndex = 43;
			this.label4.Text = "Ghi chú :";
			this.txtDate.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.txtDate.Location = new System.Drawing.Point(411, 572);
			this.txtDate.Name = "txtDate";
			this.txtDate.Size = new Size(78, 21);
			this.txtDate.TabIndex = 44;
			this.txtNote.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.txtNote.Location = new System.Drawing.Point(553, 572);
			this.txtNote.Name = "txtNote";
			this.txtNote.Size = new Size(230, 21);
			this.txtNote.TabIndex = 45;
			this.btnExportToExcel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left);
			this.btnExportToExcel.Enabled = false;
			this.btnExportToExcel.FlatAppearance.BorderColor = Color.FromArgb(255, 128, 255);
			this.btnExportToExcel.FlatStyle = FlatStyle.Flat;
			this.btnExportToExcel.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnExportToExcel.Location = new System.Drawing.Point(210, 568);
			this.btnExportToExcel.Name = "btnExportToExcel";
			this.btnExportToExcel.Size = new Size(102, 26);
			this.btnExportToExcel.TabIndex = 46;
			this.btnExportToExcel.Text = "Xuất file Excel";
			this.btnExportToExcel.UseVisualStyleBackColor = true;
			this.btnExportToExcel.Click += new EventHandler(this.btnExportToExcel_Click);
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			this.BackColor = Color.White;
			base.ClientSize = new Size(900, 600);
			base.Controls.Add(this.btnExportToExcel);
			base.Controls.Add(this.txtNote);
			base.Controls.Add(this.txtDate);
			base.Controls.Add(this.label4);
			base.Controls.Add(this.label3);
			base.Controls.Add(this.btnSearch);
			base.Controls.Add(this.btnPrint);
			base.Controls.Add(this.groupBox1);
			base.Controls.Add(this.btnClose);
			base.Controls.Add(this.dgvProduct);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 0);
			//base.Icon = (System.Drawing.Icon)componentResourceManager.GetObject("$this.Icon");
			//base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.Name = "frmQuotePrice";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "BẢNG NIÊM YẾT GIÁ";
			base.WindowState = FormWindowState.Maximized;
			base.Load += new EventHandler(this.frmInput_Load);
			base.KeyDown += new KeyEventHandler(this.frmInput_KeyDown);
			((ISupportInitialize)this.dgvProduct).EndInit();
			this.groupBox1.ResumeLayout(false);
			this.groupBox1.PerformLayout();
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
